package com.example.towSpringBoot.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

public interface RolePermissionMapper {

    @Insert("insert into rbac.role_permission (role_id, permission_id) VALUES (#{roleId}, #{permissionId} )")
    void addByRoleId(Long roleId, Integer permissionId);

    @Delete("delete from rbac.role_permission where role_id = #{id}")
    void deleteByRoleId(Long id);
}
